package presentation.controller;

import java.util.List;
import logic.facade.SubjectFacade;
import vo.StudentVO;
import vo.SubjectVO;

/**
 *
 * @author Alexander
 */
public class ControlPanelSearchSubjects {
    
    public List<SubjectVO> searchSubjects(Object guess, boolean byCode) {
        return new SubjectFacade().search(guess, byCode);
    }
    
    public List<SubjectVO> getSchedule(){
        StudentVO active = new ControlPanelMyAccount().findByIp();
        return new ControlPanelCreateSchedule().findCalendar(active.getCalendarId()).getSchedule();
    }
    
}
